import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JComponent;

public class PlatnoRozvrh extends JComponent {
	LubaEditor lubaEditor;

	public PlatnoRozvrh(LubaEditor novy) {
		this.lubaEditor = novy;
	}

	public void paintComponent(Graphics g) // MUSI sa volat presne takto
	{
		Graphics2D gg = (Graphics2D) (g);

		// vykreslenie nasho problemu

		gg.setColor(Color.BLUE);
		gg.drawString("Martina Hlinkova 2012", getWidth() - 120,
				getHeight() - 20);
		this.lubaEditor.zobrazeniePlatnaRozvrhu(gg, getWidth() * 10 / 100,
				getHeight() * 5 / 100);

	}

}
